snapshot: Remove gtk_snapshot_get_offset()
authorBenjamin Otte <otte@redhat.com>
Thu, 21 Feb 2019 02:28:12 +0000 (03:28 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 21 Feb 2019 18:47:28 +0000 (19:47 +0100)
We use append() functions for everything now, thank you very much.

docs/reference/gtk/gtk4-sections.txt
gtk/gtksnapshot.c
gtk/gtksnapshot.h

index c82f4b8c43d78906f1820570c487fe7c1e7594bf..1ed8a64df79697af30f00c9055b2443c51332b6a 100644 (file)
@@ -4403,7 +4403,6 @@ gtk_snapshot_push_cross_fade
 gtk_snapshot_push_blend
 gtk_snapshot_pop
 gtk_snapshot_offset
-gtk_snapshot_get_offset
 gtk_snapshot_append_node
 gtk_snapshot_append_cairo
 gtk_snapshot_append_texture
index 0caa0ef07897a6b0e0161a7dc9fbf5fd0b8f1dea..11dfa7bff837a3714aa58b8f1ee1f2c2b8dc6d4b 100644 (file)
@@ -1167,38 +1167,6 @@ gtk_snapshot_offset (GtkSnapshot *snapshot,
   current_state->transform = gtk_transform_translate (current_state->transform, &GRAPHENE_POINT_INIT (x, y));
 }
 
-/**
- * gtk_snapshot_get_offset:
- * @snapshot: a #GtkSnapshot
- * @x: (out) (optional): return location for x offset
- * @y: (out) (optional): return location for y offset
- *
- * Queries the offset managed by @snapshot. This offset is the
- * accumulated sum of calls to gtk_snapshot_offset().
- *
- * Use this offset to determine how to offset nodes that you
- * manually add to the snapshot using
- * gtk_snapshot_append().
- *
- * Note that other functions that add nodes for you, such as
- * gtk_snapshot_append_cairo() will add this offset for
- * you.
- **/
-void
-gtk_snapshot_get_offset (GtkSnapshot *snapshot,
-                         int         *x,
-                         int         *y)
-{
-  /* FIXME: remove this function */
-  gtk_snapshot_ensure_identity (snapshot);
-
-  if (x)
-    *x = 0;
-
-  if (y)
-    *y = 0;
-}
-
 void
 gtk_snapshot_append_node_internal (GtkSnapshot   *snapshot,
                                    GskRenderNode *node)
index 05cf3f586726d8712217d6a70d3374c50e9969b8..485d160fc0c078cf337b4b893d54c117a273379e 100644 (file)
@@ -109,11 +109,6 @@ void            gtk_snapshot_offset                     (GtkSnapshot
                                                          int                     x,
                                                          int                     y);
 GDK_AVAILABLE_IN_ALL
-void            gtk_snapshot_get_offset                 (GtkSnapshot            *snapshot,
-                                                         int                    *x,
-                                                         int                    *y);
-
-GDK_AVAILABLE_IN_ALL
 void            gtk_snapshot_append_node                (GtkSnapshot            *snapshot,
                                                          GskRenderNode          *node);
 GDK_AVAILABLE_IN_ALL